package com.gigalaxy.flex.components.ext
{
	import flash.events.MouseEvent;

	import spark.components.Image;

	public class GGButtonImage extends Image
	{
		public function GGButtonImage()
		{
			super();

			addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler, false, 0, true);
			addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler, false, 0, true);
			buttonMode = true;
			useHandCursor = true;
		}

		protected function mouseOutHandler(event:MouseEvent):void
		{
			alpha = 1;
		}

		protected function mouseOverHandler(event:MouseEvent):void
		{
			alpha = .8;
		}
	}
}
